<template>
  <div>
    <header class="task-header">
      <img
        class="header-back"
        @click="back()"
        src="../../static/images/task/back_white.png"
        alt
      />
      <slot></slot>
    </header>
  </div>
</template>

<script>
export default {
  name: 'nav-white',
  data() {
    return {}
  },
  methods: {
    back() {
      history.go(-1)
    }
  },
  components: {}
}
</script>

<style scoped>
.task-header {
  width: 10rem;
  height: 1.1rem;
  position: relative;
  text-align: center;
  font-family: PingFang-SC-Regular;
  font-size: 0.44rem;
  color: #000000;
  line-height: 1.1rem;
}

.header-back {
  position: absolute;
  left: 0.23rem;
  top: 0.35rem;
  width: 0.33rem;
  height: 0.56rem;
}
</style>
